<!DOCTYPE html>
<html>
<head>
    <title>{$site_name}-查看详情-码溜挪车</title>
    <meta name="keywords" content="{$site_seo_keywords}" />
    <meta name="description" content="{$site_seo_description}">
    <link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
    <tc_include file="Public:head" />
</head>

<body class="body-white" id="top">
<tc_include file="Public:nav" />

<div class="container tc-main">
    <div class="row">
        <div class="span2">
            <tc_include file="Public:usernav"/>
        </div>
        <div class="span10">
            <ul class="nav nav-tabs">
                <li><a href="{:leuu('Nuoche/center/generate')}">码溜生成</a></li>
                <li class="active"><a href="#">查看详情</a></li>
            </ul>

            <form class="form-inline" method="GET">

                <select name="category">

                    <option value="0" <if condition="$qrcodeCategory eq 0">selected</if> >已注册</option>

                    <option value="1" <if condition="$qrcodeCategory eq 1">selected</if> >未注册</option>

                    <option value="2" <if condition="$qrcodeCategory eq 2">selected</if> >查看全部</option>

                </select>

                <input type="text" name="plateNum" placeholder="输入车牌号" value="{$plateNum}">

                <input type="text" name="tel" placeholder="输入电话号" value="{$tel}">

                <button type="submit" class="btn btn-info btn-lg">搜索</button>

                <span style="float:right;margin-right:20px;margin-top:7px; color:red">总条数: {$listCount}</span>

            </form>

            <div class="tab-content">
                <div class="tab-pane active" id="one">
                    <table class="table table-bordered table-striped table-hover">
                        <thead>
                        <tr>
                            <th>nid</th>
                            <th>车主车牌号</th>
                            <th>车主电话号</th>
                            <th><a href="{:UU('Nuoche/Center/order',array('sortId'=>'regTime' ,'sortValue'=>$regTime, 'category'=>$qrcodeCategory, 'plateNum'=>$plateNum, 'tel'=>$tel))}">注册时间
                                <eq name="regTime" value="desc"><i class="fa fa-long-arrow-up"></i></eq>
                                <eq name="regTime" value="asc"><i class="fa fa-long-arrow-down"></i></eq>
                            </a></th>
                            <th><a href="{:UU('Nuoche/Center/order',array('sortId'=>'noticeCount' ,'sortValue'=>$noticeCount, 'category'=>$qrcodeCategory, 'plateNum'=>$plateNum, 'tel'=>$tel))}">通知次数
                                <eq name="noticeCount" value="desc"><i class="fa fa-long-arrow-up"></i></eq>
                                <eq name="noticeCount" value="asc"><i class="fa fa-long-arrow-down"></i></eq>
                            </a></th>
                            <th><a href="{:UU('Nuoche/Center/order',array('sortId'=>'lastNoticeTime' ,'sortValue'=>$lastNoticeTime, 'category'=>$qrcodeCategory, 'plateNum'=>$plateNum, 'tel'=>$tel))}">最后通知时间
                                <eq name="lastNoticeTime" value="desc"><i class="fa fa-long-arrow-up"></i></eq>
                                <eq name="lastNoticeTime" value="asc"><i class="fa fa-long-arrow-down"></i></eq>
                            </a></th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <if condition="$list">
                            <foreach name="list" item="vo">
                                <tr>
                                    <td>{$vo.nid}</td>
                                    <td>{$vo.platenum}</td>
                                    <td>{$vo.tel}</td>
                                    <td>{$vo.regtime}</td>
                                    <td>{$vo.noticecount}</td>
                                    <td>{$vo.lastnoticetime}</td>
                                    <td><a href="javascript:void(0);" onclick="showewm({$vo.nid},'{$vo.ncode}')">下载二维码</a></td>
                                </tr>
                            </foreach>
                            <else/>
                            <tr><td colspan="6">
                                <span class="text-info">暂时没有记录</span>
                            </td></tr>
                        </if>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
    <tc_include file="Public:footer" />
</div>
<!-- /container -->
<tc_include file="Public:scripts" />
<script type="text/javascript">
    function showewm(id,code) {
        var http = window.location.protocol;
        var host = window.location.host;
        var url  = escape(http+'//'+host+'/sy/nuoche/company/index/nid/'+id+'/ncode/'+code+'.html?v='+new Date().getTime());
        console.log(http+'//'+host+'/sy/nuoche/company/index/nid/'+id+'/ncode/'+code+'.html?v='+new Date().getTime());
        Wind.use("artDialog",function(){
            art.dialog({
                title: '二维码查看',
                fixed: true,
                width:"300px",
                height: '320px',
                id:"image_priview",
                lock: false,
                background:"#CCCCCC",
                opacity:0,
                content: '<img src="/sy/qrcode.php?data='+url+'" width="290px" height="290px"/><br/>右击鼠标，点图片另存为，可以保存图片',
            });
        });
    }
</script>
</body>
</html>